import { Prop, Schema } from '@nestjs/mongoose';
import * as Mongoose from 'mongoose';
import { Document } from 'mongoose';

@Schema({ timestamps: true })
export class Groups extends Document {
  @Prop({ required: true })
  name: string;

  @Prop({ type: Mongoose.Schema.Types.ObjectId })
  owner: string;

  @Prop({ type: [String], required: true })
  users: string[];
}
